//客服管理相关

function serverSelectCheck(source){
	var inputs = $("input[id^='sid_']", navTab.getCurrentPanel());
	var select = false;
	for (var i = 0; i < inputs.length; i++) {
		if(inputs[i].checked){
			select = true;
		}
	}
	if(!select){
		alert("没有选择服务器");
		window.event.preventDefault();
	}
}

var localRereshUUU = "";
/**
 * 禁言拼接局部刷新连接
 */
function updateNoSaySearch(){
	
	var localReresh = $("#localRefreshUrl", navTab.getCurrentPanel());
	var para = $("#para", navTab.getCurrentPanel());
	if(para.val() == ""){
		alertMsg.error("文本框参数不能为空!")
		//localReresh.attr("ref", false);
	}
	
	var url = localReresh.attr("href");
	if(localRereshUUU == ""){
		localRereshUUU = url;
	}else{
		url = localRereshUUU;
	}
	
	var pp = $("#para", navTab.getCurrentPanel()).val();
	if(pp == null || pp == ""){
		pp = "584874";
	}
	url += "/"+$("#sid", navTab.getCurrentPanel()).val()+"/"+$("#searchType", navTab.getCurrentPanel()).val()+"/"+pp;
	localReresh.attr("href", url);
}
var localRereshLogin = "";
/**
 * 禁言拼接局部刷新连接
 */
function updateNoLoginSearch(){
	
	var localReresh = $("#localRefreshUrl", navTab.getCurrentPanel());
	var para = $("#para", navTab.getCurrentPanel());
	if(para.val() == ""){
		alertMsg.error("文本框参数不能为空!")
		//localReresh.attr("ref", false);
	}
	
	var url = localReresh.attr("href");
	if(localRereshLogin == ""){
		localRereshLogin = url;
	}else{
		url = localRereshLogin;
	}
	
	var pp = $("#para", navTab.getCurrentPanel()).val();
	if(pp == null || pp == ""){
		pp = "584874";
	}
	url += "/"+$("#sid", navTab.getCurrentPanel()).val()+"/"+$("#searchType", navTab.getCurrentPanel()).val()+"/"+pp;
	localReresh.attr("href", url);
}

